package router

import (
	"api/basic/config"
	"api/internal/handler"
	"api/pkg"
	"github.com/gin-gonic/gin"
)

func SetGroupRouter(c *gin.RouterGroup) {
	groupRouter := c.Group("/group")
	{
		groupRouter.POST("/groupCreate", handler.GroupCreate)
		groupRouter.Use(pkg.JWTAuth(config.DataConfig.Jwt.Key))
		groupRouter.GET("/list", handler.GetGroupList)
		groupRouter.POST("/create", handler.OrderCreate)
	}
}
